package com.pth.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class LoginPreAction extends ActionSupport {

	
	@Override
	public String execute() throws Exception {

		HttpSession session=ServletActionContext.getRequest().getSession();
		
		if(session.getAttribute("userinfo")==null){
			
			return "tologin";
		}
		return SUCCESS;
		
		
	}
	
}
